<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>用户中心</title>
<script src="/res/js/common/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/js/common/common.js"></script>
<link href="/res/css/respective/bussiness/userCenter.css" rel="stylesheet">
</head>
[#assign menucode="homePage"/]
<body>
	<div class="warp">
		[#include "/front/common/front_headAzt.html"]
		<div class="backcontent">
			[#include "/front/common/front_leftAzt.html"]
			<div class="back-main">
				<div class="mainContent">
					<div class="mainContentWhite" style="overflow: hidden;">
						<div class="contentLeft"> 
							<div class="contentIterm">
								<h3 style="background-image: url(/res/images/respective/bussiness/a_54.png)">待处理事项</h3>
								<div style="margin-top: 15px;">
									<div style="display: inline-block;">
										<img src="/res/images/respective/bussiness/a_60.png" style="width: 125px;">
										<div class="daiChuLi">
											<h3><strong>项目</strong></h3>
											<h5><a href="/enquiry/quote_1/list">我参与的预算询价 <strong>${myDesQutCount!0}</strong></a></h5>
											<h5><a href="/enquiry/quote_2/list">我参与的采购询价 <strong>${myPurQutCount!0}</strong></a></h5>
											<h5><a href="/enquiry/pushEnquiry_2/list">平台推送的询价 <strong>${pushEnquiryCount!0}</strong></a></h5>
										</div>
									</div>  
									<div style="display: inline-block;margin-left: 20px;">
										<img src="/res/images/respective/bussiness/a_62.png" style="width: 125px;">
										<div class="daiChuLi">
											<h3><strong>订单</strong></h3>
											<h5><a href="/order/quote?tab=1&state=1">待买家付款 <strong>${unPayOrderCount!}</strong></a></h5>
											<h5><a href="/order/quote?tab=2&state=2">已付款<strong>${payedOrderCount!}</strong></a></h5>
											<h5><a href="/order/quote?tab=3&state=3">已发货<strong>${shipedOrderCount!}</strong></a></h5>
										</div>
									</div>  
								</div>
							</div>
							<div class="contentIterm">
								<h3 style="background-image: url(/res/images/respective/bussiness/a_76.png)">我参与的询价 
									<span style="display: inline-block;height: 30px;line-height: 30px;float: right;cursor: pointer;font-size: 14px;">
										<a [#if company.auditState == 3] href="/enquiry/quote_2/list"[/#if] [#if company.auditState == 1] onclick="friendlyTip();"[/#if]>查看更多</a>
									</span>
								</h3>
								<table>
									<thead>
										<tr>
											<th style="width: 15%;">询价类型</th>
											<th style="width: 20%;">项目名称</th>
											<th style="width: 20%;">报价反馈</th>
											<th style="width: 15%;">报价时间</th>
											<th style="width: 20%;">报价金额</th>
											<th style="width: 10%;">操作</th>
										</tr>
									</thead>
									<tbody>
										[#if quoteList??]
											[#list quoteList as enq]
												<tr>
													<td>[#if enq.qtype??]${(enq.qtype==1)?string("预算询价" , "采购询价")}[/#if]</td>
													<td>${enq.enquiryName!}</td>
													<td>
														[#if enq.orderQuoteId?? && enq.orderState?? && enq.orderState == 4]
														交易完成
														[#elseif enq.budget > 0]
														纳入预算
														[#elseif enq.consulttime??]
														已查看
														[#else]
														未查看
														[/#if]
													</td>
													<td class="zhuangTai">[#if enq.quoteDate??][#if currentRole??][#if currentRole.roleType==1]<img src="/res/images/respective/bussiness/a_80.png"/> [/#if][#if currentRole.roleType==2]<img src="/res/images/respective/bussiness/a_80org.png"/> [/#if][/#if]<span>${enq.quoteDate?string('yyyy-MM-dd')}[/#if]</td>
													<td class="baoJia">￥${enq.totalPrice!0}</td>
													<td>
														[#if enq.budget == 0 && (!enq.orderQuoteId??)]<a class="opLink" [#if company.auditState == 3] href="/enquiry/quoteEdit?quoteId=${enq.id!}"[/#if] [#if company.auditState == 1] onclick="friendlyTip();"[/#if]>修改</a>[/#if]
													</td>
												</tr>
											[/#list]
										[/#if]
									</tbody>
								</table>
							</div>
						</div>
							 	<!--右侧内容-->
						<div class="contentRight" sty>
							<div style="position: relative;height: 95px;background: url('/res/images/respective/bussiness/a_100.jpg') center top no-repeat;background-color: white;">
								<!-- <img style="width: 100%;" src="/res/images/respective/bussiness/a_100.jpg" alt="" /> -->
								<h5 class="comIntro">[#if topCompany?? && company.parentId??]${topCompany.companyName!}-[/#if]${company.companyName!}</h5>
								<h5 class="zhiWu">
								[#if centralizeboolean=="1"]<img style="vertical-align: middle;" src="/res/images/respective/bussiness/goldBussi_03.png" alt="集采供应商" />[/#if]<span style="vertical-align: middle;">我的职务：${currentRole.name!}</span>
								</h5>
							</div> 
							<div class="contentIterm" style="margin-bottom: 0px;padding-top: 0px;box-shadow: 0 2px 3px #bababa;"> 
								<div class="comLogo">
									<div class="yinYing">
										<img src="[#if currentUser.logo?? && currentUser.logo?length gt 0]${currentUser.logo!}[#else]/res/images/common/userLogo_05.png[/#if]" style="width: 70px;">
									</div> 
								</div> 
								<p class="qianDaoRight" style="height: 88px; line-height: 44px;">
									<small>账户积分</small>
									<strong style="font-size: 20px;"><a href="/integral/myIntegral" style="padding: 0; color: #666; border: none;">[#if userAccount??]${userAccount.usIntegral!0}[#else]0[/#if]</a></strong>
									<br>
									<small>安装币</small>
                                    <strong style="font-size: 20px;"><a href="/coin/my" style="padding: 0; color: #666; border: none;">[#if coinCount??]${coinCount!0}[#else]0[/#if]</a></strong>
								<!-- 	<span class="floatOuter">
										<a>签到</a>
									</span>  -->
								</p> 
							</div>
							<div class="jiaoYiMoney">
								<img style="margin: 12px 15px 12px 20px;" alt="" src="/res/images/respective/bussiness/money_03.png"> 
								<div style="height: 56px">
									<h5 style="line-height: 1;margin-top: 6px;">${transactions!0}</h5>
									<h5 style="font-size: 14px;font-weight: normal;">我的销售总额（元）</h5>
								</div>	
							</div>
							[@advertise_template code='providerCenterRight' /]
						</div>
					</div>
				</div>
			</div>
			<!-- 底部菜单-->
			[#include "/front/common/front_footerAzt.html"]
		</div> 
	</div>
</body>
<script src="/res/js/common/common.js"></script> 
<script>
	var step=0;
	var x=$(".contentRight").width(); 
	var sz=$("#adv1 li").children("img").size(); 
	$(function(){ 
		$(".mainContentWhite").css("minHeight",$(window).height()-180);
		$("#adv1 li img").width(x); 
		$("#adv1").width(sz*x+1000);  
		$(".prev").click(function(){
			if($("#adv1").css("margin-left")=="0px"){//最左边
				$("#adv1").css("margin-left",-x*(sz-1));//展示最末图片  
				return; 
			}else{
				var m=$("#adv1").css("margin-left"); 
				$("#adv1").css("margin-left",parseFloat(m)+parseFloat(x));
				var ix=Math.abs((parseFloat(m)+parseFloat(x))/parseFloat(x)); 
			} 
		});
		$(".next").click(function(){  
			var t; 
			if(parseFloat($("#adv1").css("margin-left"))==(-x*(sz-1))){ 
				$("#adv1").css("margin-left","0px");
				t=$("#adv1").children("li[data-index='0']").attr("title"); 
				return; 
			}else{
				var m=$("#adv1").css("margin-left"); 
				$("#adv1").css("margin-left",parseFloat(m)-parseFloat(x));
				var ix=Math.abs((parseFloat(m)-parseFloat(x))/parseFloat(x));  
			}  
		});
		
		setInterval(adv,3000); 
		
	});
	function adv(){  
		if(step==(sz-1)){ 
			$("#adv1").css("margin-left","0px");
			t=$("#adv1").children("li[data-index='0']").attr("title"); 
			step=0;
			return; 
		}else{
			step++; 
			$("#adv1").css("margin-left",-x*step);   
		}  
	}
</script>
</html>
